package net.csdn.business.kanban.common.domain.resp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.csdn.business.kanban.common.domain.request.KanbanFieldExtensionParam;

import java.util.List;

/**
 * @ClassName KanbanFieldResp
 * @Description TODO
 * @Author liuzhisheng
 * @Date 2023/9/19
 **/
@NoArgsConstructor
@AllArgsConstructor
@Data
public class KanbanFieldResp {
    @Schema(name = "id", description = "id")
    private Long id;

    @Schema(name = "kanban_id", description = "看板ID")
    private String kanbanId;

    @Schema(name = "field_name", description = "字段名称")
    private String fieldName;

    @Schema(name = "field_type", description = "字段类型 0:text 1:number 2:date 3:single select 4:iteration")
    private Integer fieldType;

    @Schema(name = "userDefined", description = "是否用户自定义")
    private boolean userDefined;

    @Schema(name = "attributes", description = "字段属性")
    private List<KanbanFieldExtensionParam> attributes;
}
